package com.threeti.mecool.core.domain.model.plan.aspects;

import javax.persistence.*;

import org.springframework.beans.factory.annotation.Configurable;
import com.threeti.mecool.core.domain.model.plan.pojo.Task;
import com.threeti.mecool.core.domain.model.plan.pojo.UserStep;
import com.threeti.mecool.core.domain.model.plan.pojo.UserTask;

privileged aspect UserTask_AJ_Entity {
	declare @type: UserTask:@Configurable;
	declare @type: UserTask:@Entity;
  declare @type: UserTask:@Table(name = "DM_WF_USER_TASK");
	
	declare @field: Long UserTask.id:@Id;
	declare @field: Long UserTask.id:@GeneratedValue(strategy = GenerationType.AUTO);
	declare @field: Integer UserTask.version:@Version;
	
	declare @field: Task UserTask.task:@ManyToOne;
	declare @field: UserStep UserTask.userStep:@OneToOne(optional = false);
}
